home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / gr564s.zip / SRC / MAKEFILE < prev    next >
Text File  |  1993-09-07  |  7KB  |  256 lines

  1. # $Id: Makefile,v 5.20 1992/07/28 16:12:44 eggert Exp $
  2. # Copyright (C) 1982, 1988, 1989 Walter Tichy
  3. # Copyright 1990, 1991, 1992 by Paul Eggert
  4. #   Distributed under license by the Free Software Foundation, Inc.
  5. #
  6. # This file is part of RCS.
  7. #
  8. # RCS is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. #
  13. # RCS is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with RCS; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22. # Report problems and direct all questions to:
  23. #
  24. #    rcs-bugs@cs.purdue.edu
  25. #
  26.  
  27. # default target
  28. default :: all
  29.  
  30. # See README for more information on the configuration section.
  31. # ----- start of configuration section -----
  32.  
  33. #(Unix
  34.  
  35.  BINDIR = /usr/local/bin
  36. #BINDIR = /bin
  37. #BINDIR = /usr/bin
  38.  
  39.  CC = cc
  40. #CC = cc -g# debug
  41. #CC = gcc -g# GCC
  42.  
  43.  CC_D =
  44.  
  45.  CC_O = -O
  46. #CC_O =# debug
  47. #CC_O = -O2 -fomit-frame-pointer# GCC (debugging impossible)
  48. #CC_O = -O -R# BSD compilers that do not support `const'
  49.  
  50.  CC_W =
  51. #CC_W = -fno-common -Wall -Wcast-qual -Wconversion -Wmissing-prototypes \
  52. #    -Wnested-externs -Wno-parentheses -Wpointer-arith -Wshadow \
  53. #    -Wtraditional -Wwrite-strings# GCC 2.*
  54.  
  55.  CFLAGS = $(CC_D) $(CC_O) $(CC_W)
  56.  
  57.  COMPAT2 = 0
  58. #COMPAT2 = 1
  59.  
  60.  DESTBINDIR = $(DESTDIR)$(BINDIR)
  61.  
  62.  DIFF = $(DIFFPREFIX)diff
  63. #DIFF = $(DIFFPREFIX)rdiff# short for ``RCS diff'' on some hosts
  64.  
  65.  DIFFPREFIX = /usr/local/gnu/# GNU diff -- must be version 1.15 or later
  66. #DIFFPREFIX = /bin/# traditional diff
  67. #DIFFPREFIX = /usr/bin/# traditional diff (alternate name)
  68.  
  69.  DIFF_FLAGS = -an# GNU diff
  70. #DIFF_FLAGS = -n# traditional diff
  71.  
  72.  DIFF_L = 1# GNU diff
  73. #DIFF_L = 0# traditional diff
  74.  
  75.  DIFF_SUCCESS = 0
  76. #DIFF_SUCCESS = EXIT_SUCCESS
  77.  DIFF_FAILURE = 1
  78. #DIFF_FAILURE = EXIT_FAILURE
  79.  DIFF_TROUBLE = 2
  80. #DIFF_TROUBLE = (EXIT_FAILURE*2)
  81.  
  82.  DIFF3 = $(DIFF)3# GNU diff3
  83. #DIFF3 = /usr/lib/diff3# traditional diff3
  84. #DIFF3 = /usr/5lib/diff3prog# other aliases for traditional diff3
  85. #DIFF3 = /usr/lib/diff3prog
  86. #DIFF3 = /usr/lib/rdiff3
  87.  
  88.  DIFF3_A = 1# GNU diff 2.1 or later
  89. #DIFF3_A = 0# all other diffs
  90.  
  91.  DIFF3_BIN = 1# GNU diff
  92. #DIFF3_BIN = 0# traditional diff
  93.  
  94.  ED = /bin/ed
  95.  
  96.  EXECUTABLE_GROUP = staff# BSD unix installation
  97.  EXECUTABLE_PERMISSIONS = -g $(EXECUTABLE_GROUP) -m 775# BSD unix installation
  98.  INSTALL = install -c $(EXECUTABLE_PERMISSIONS)# BSD unix installation
  99. #INSTALL = cp# traditional Unix installation
  100.  
  101.  LDFLAGS =
  102.  
  103.  LDLIBS =
  104.  
  105.  LINK = $(CC) $(LDFLAGS)
  106.  
  107.  LINT = lint -abchx# traditional and BSD lint
  108. #LINT = lint# System V lint
  109.  
  110.  MAKE = make
  111.  
  112.  OTHER_OBJECT =
  113.  
  114.  RCSPREFIX = $(BINDIR)/
  115. #RCSPREFIX =
  116.  
  117.  REMOVE = rm -f
  118.  
  119.  SENDMAIL = "/bin/mail"
  120. #SENDMAIL = "/etc/delivermail", "-w"
  121. #SENDMAIL = "/usr/bin/mail"
  122. #SENDMAIL = "/usr/lib/sendmail"
  123. #SENDMAIL = "mail"
  124. #SENDMAIL =# for impoverished hosts that lack electronic mail
  125.  
  126.  TESTPREFIX =
  127.  
  128.  o = .o
  129. #o = .s# Minix/PC with ACK cc
  130.  
  131.  x =
  132.  
  133. #)
  134. # On non-Unix hosts you must manually create and edit conf.h from conf.heg.
  135.  
  136. # ----- end of configuration section -----
  137. # You shouldn't have to change anything past this point.
  138.  
  139.  
  140. # Avoid brain damage in some versions of 'make'.
  141. SHELL = /bin/sh
  142.  
  143. # all commands
  144. RCSCOMMANDS = ci$x co$x ident$x merge$x \
  145.     rcs$x rcsclean$x rcsdiff$x rcsmerge$x rlog$x
  146.  
  147. all :: $(RCSCOMMANDS)
  148.  
  149. install :: all
  150.     $(INSTALL) ci$x $(DESTBINDIR)
  151.     $(INSTALL) co$x $(DESTBINDIR)
  152.     $(INSTALL) ident$x $(DESTBINDIR)
  153.     $(INSTALL) merge$x $(DESTBINDIR)
  154.     $(INSTALL) rcs$x $(DESTBINDIR)
  155.     $(INSTALL) rcsclean$x $(DESTBINDIR)
  156.     $(INSTALL) rcsdiff$x $(DESTBINDIR)
  157.     $(INSTALL) rcsmerge$x $(DESTBINDIR)
  158.     $(INSTALL) rlog$x $(DESTBINDIR)
  159.  
  160. # Install RCS and (if applicable) GNU diff before running these tests.
  161. # To test RCS before installing it, see README.
  162. RCSTEST = PATH=$(BINDIR):$(DIFFPREFIX).:$$PATH sh $(TESTPREFIX)rcstest
  163. installtest ::
  164.     $(RCSTEST)
  165. installdebug ::
  166.     $(RCSTEST) -v
  167.  
  168. clean ::
  169.     $(REMOVE) a.* *$o conf.h conf.err $(RCSCOMMANDS) rcsvers.c
  170.  
  171. #(Unix
  172. conf.h : conf.sh Makefile
  173.     $(REMOVE) a.*
  174.     CC='$(CC)' CFLAGS='$(CFLAGS)' \
  175.     COMPAT2='$(COMPAT2)' \
  176.     DIFF3='$(DIFF3)' DIFF3_A='$(DIFF3_A)' DIFF3_BIN='$(DIFF3_BIN)' \
  177.     DIFF='$(DIFF)' DIFF_FLAGS='$(DIFF_FLAGS)' DIFF_L='$(DIFF_L)' \
  178.     DIFF_SUCCESS='$(DIFF_SUCCESS)' DIFF_FAILURE='$(DIFF_FAILURE)' DIFF_TROUBLE='$(DIFF_TROUBLE)' \
  179.     ED='$(ED)' \
  180.     LDFLAGS='$(LDFLAGS)' LDLIBS='$(LDLIBS)' \
  181.     RCSPREFIX='$(RCSPREFIX)' \
  182.     SENDMAIL='$(SENDMAIL)' \
  183.     $(SHELL) -x conf.sh 3>&1 >a.h 2>conf.err
  184.     mv a.h $@
  185.     $(REMOVE) a.*
  186. #)
  187.  
  188. rcsvers.c : ../Version
  189.     ( \
  190.         echo '#include "rcsbase.h"' && \
  191.         echo 'char const RCS_version_string[] = "'"`cat $?`"'";' \
  192.     ) >$@
  193.  
  194. ci = ci$o rcslex$o rcssyn$o rcsgen$o rcsedit$o rcskeys$o rcsmap$o \
  195.     rcsrev$o rcsutil$o rcsvers$o rcsfnms$o partime$o maketime$o rcskeep$o \
  196.     rcsfcmp$o $(OTHER_OBJECT)
  197. ci$x : $(ci)
  198.     $(LINK) $(ci) -o $@ $(LDLIBS)
  199.  
  200. co = co$o rcslex$o rcssyn$o rcsgen$o rcsedit$o rcskeys$o rcsmap$o \
  201.     rcsrev$o rcsutil$o rcsvers$o rcsfnms$o partime$o maketime$o rcskeep$o \
  202.     $(OTHER_OBJECT)
  203. co$x : $(co)
  204.     $(LINK) $(co) -o $@ $(LDLIBS)
  205.  
  206. ident = ident$o rcsmap$o $(OTHER_OBJECT)
  207. ident$x : $(ident)
  208.     $(LINK) $(ident) -o $@ $(LDLIBS)
  209.  
  210. merge = merge$o merger$o rcsfnms$o rcslex$o \
  211.     rcsmap$o rcsrev$o rcssyn$o rcsutil$o rcsvers$o \
  212.     rcskeep$o rcskeys$o $(OTHER_OBJECT)
  213. merge$x : $(merge)
  214.     $(LINK) $(merge) -o $@ $(LDLIBS)
  215.  
  216. rlog = rlog$o rcslex$o rcsmap$o rcssyn$o rcsrev$o rcsutil$o rcsvers$o \
  217.     partime$o maketime$o rcsfnms$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  218. rlog$x : $(rlog)
  219.     $(LINK) $(rlog) -o $@ $(LDLIBS)
  220.  
  221. rcs = rcs$o rcslex$o rcssyn$o rcsrev$o rcsutil$o rcsvers$o rcsgen$o \
  222.     rcsedit$o rcskeys$o rcsmap$o rcsfnms$o rcskeep$o $(OTHER_OBJECT)
  223. rcs$x : $(rcs)
  224.     $(LINK) $(rcs) -o $@ $(LDLIBS)
  225.  
  226. rcsclean = rcsclean$o rcsedit$o rcsfcmp$o rcsfnms$o rcsgen$o rcskeys$o \
  227.     rcslex$o rcsmap$o rcsrev$o rcssyn$o rcsutil$o rcsvers$o rcskeep$o \
  228.     $(OTHER_OBJECT)
  229. rcsclean$x : $(rcsclean)
  230.     $(LINK) $(rcsclean) -o $@ $(LDLIBS)
  231.  
  232. rcsdiff = rcsdiff$o rcsutil$o rcsvers$o rcsfnms$o rcsmap$o rcsrev$o rcssyn$o \
  233.     rcslex$o maketime$o partime$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  234. rcsdiff$x : $(rcsdiff)
  235.     $(LINK) $(rcsdiff) -o $@ $(LDLIBS)
  236.  
  237. rcsmerge = rcsmerge$o merger$o rcsutil$o rcsvers$o rcsfnms$o rcsmap$o rcsrev$o \
  238.     rcssyn$o rcslex$o rcskeep$o rcskeys$o $(OTHER_OBJECT)
  239. rcsmerge$x : $(rcsmerge)
  240.     $(LINK) $(rcsmerge) -o $@ $(LDLIBS)
  241.  
  242. SOURCE=    ci.c co.c ident.c maketime.c merge.c merger.c partime.c rcs.c \
  243.     rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
  244.     rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c rcsrev.c rcssyn.c \
  245.     rcsutil.c rlog.c rcsvers.c
  246. OBJECT=    ci$o co$o ident$o maketime$o merge$o merger$o partime$o rcs$o \
  247.     rcsclean$o rcsdiff$o rcsedit$o rcsfcmp$o rcsfnms$o rcsgen$o \
  248.     rcskeep$o rcskeys$o rcslex$o rcsmap$o rcsmerge$o rcsrev$o rcssyn$o \
  249.     rcsutil$o rlog$o rcsvers$o
  250.  
  251. lint :: conf.h
  252.     $(LINT) $(CC_D) -DRCS_lint=1 $(SOURCE)
  253.  
  254. conf_h = conf.h
  255. $(OBJECT) : $(conf_h) rcsbase.h
  256.